package com.ruoyi.meiyijia.test;

import com.ruoyi.meiyijia.entity.FileMeiyijiaInventory;
import com.ruoyi.common.utils.file.parsing.excel.ExcelParsingUtil;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Random;

/**
 * @author: 王振鹏
 * @date: 2023年05月17日 20:24:00
 * @description:
 */
public class test {
    
    
    @Autowired
    private ExcelParsingUtil<FileMeiyijiaInventory> excelParsingUtil;
    
    public void test1(){
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy/M/d H:m:s");
        LocalDateTime time = LocalDateTime.parse( "2023/11/12 23:02:25",df);
        System.out.println("222");
        Random r = new Random();
        System.out.println(r.nextInt(1000000000));
    }
    
    public void test2(){
        String str = "cookiesession1=678B295C087C6D87E0B34CF0A0E7EDBC; SECKEY_ABVK=EVjMpdHLpty1a4M1+ru8UXt6p2UvC/GGSqa/GWz2Jmo=; BMAP_SECKEY=DhvOxHNpIJ2u2PeNDoni9BMR6XZNxXuVwFR_5IENYtH9polEChdwPNljME26gsLpTeJXF0v77Z7k3fwIx8ntW1yaioe7fjI_mNhDlrje9Kgv4gPDMmRxA3F4ZpM24EO3fuQ5Yy6Jsd5O4kp1uOMDDy07aWTIhfnseB7Ekx4JhqdRmETPMDGgrxGPUzyRDCds; route=563f5055d989f3a930d01610439f9e80; ASP.NET_SessionId=cfbfyns3idoouna5vvtaeqvl; AccountName=17739073708; IPAddress=61.131.3.170; UserType=0; UserCode=17739073708; RealName=王国强; IsShowTips=0; ShopRoleName=店主; Mobile=17739073708; ShopUserName=王国强; DaQu=河南; EmployeeExchange=%E8%B1%AB01386; Hm_lvt_44d68602f287d6366461e2d500c434ca=1688474935,1688523451,1688637347,1690770159; ek=963df107; .ASPXAUTH=C59512F0884A8BDABE71A1163E5B9B0BD52B32756D896645EE52BC122C9766913E4D210AE2D632DF8304D6D3E87C5AC2A5B193B124366ADB79C44DD80514AF6FB1C3F4B680016438F54D9967AB1993AC06DE4E1986F595ACCF9B40741B7F19D78C7C6D82714C986DAD64FCB580D550490438D5A31F348DC85D0FF87C69DE79A8FBCB0646D99F95691FE562141E435155; ShopCode=豫01386; ShopName=(AB)河南洛阳栾川伊水湾大酒店美宜佳; UserId=a0c972f4-e439-4fe7-bf2c-915732e9c4da; CompanyCode=HA; RoleId=1; Hm_lpvt_44d68602f287d6366461e2d500c434ca=1690791231";
        String res = str.replace("RealName=王国强;","");
        res = res.replace("RealName=王国强;","");
        res = res.replace("ShopRoleName=店主;","");
        res = res.replace("ShopUserName=王国强;","");
        res = res.replace("DaQu=河南;","");
        res = res.replace("ShopCode=豫01386;","");
        res = res.replace("ShopName=(AB)河南洛阳栾川伊水湾大酒店美宜佳; ","");
    
        System.out.println(res);
        
    }
    
    public static void main(String[] args) throws IOException {
       test test = new test();
        //test.test1();
       test.test2();

    }
    
    
}